<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
    xmlns:sec="http://www.springframework.org/security/tags"
>

<f:view contentType="text/html">

<h:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Warhammer 40k Campaignhandler</title>
<!--     <link rel="stylesheet" href="${request.contextPath}/styles/blueprint/print.css" type="text/css" media="print" /> -->
    <!--[if lt IE 8]>
        <link rel="stylesheet" href="${request.contextPath}/styles/blueprint/ie.css" type="text/css" media="screen, projection" />
    <![endif]-->
    <link rel="stylesheet" href="${request.contextPath}/static/css/main.css" type="text/css" media="screen" />
<!--     <link rel="stylesheet" href="${request.contextPath}/static/css/jquery-ui-1.10.1.custom.css" type="text/css" media="screen" /> -->
<!--     <link rel="stylesheet" href="${request.contextPath}/static/css/jquery-ui.css" type="text/css" media="screen" /> -->
    <ui:insert name="headIncludes"/>
    <style>
    <!--
        div.ui-datatable > table {
            margin-bottom: 0;
        }
    -->
    </style>
</h:head>
<h:body>
<div id="container">
    <p:layout style="min-width:400px;min-height:800px;" id="layout" >
        <p:layoutUnit id="login" position="north" resizable="false">
            <a href="${request.contextPath}">Start</a>
            <c:if test="${empty currentUser.name}">
                | <a href="${request.contextPath}/spring/login">Login</a>
            </c:if>
            <c:if test="${not empty currentUser.name}">
                | <a href="${request.contextPath}/spring/logout">Logout ${currentUser.name}</a>
                |
            </c:if>
            <c:if test="#{sec:areAnyGranted('ROLE_ADMIN')}">
                | <a href="${request.contextPath}/spring/admin">Adminsitration</a>
            </c:if>
        </p:layoutUnit>
        <p:layoutUnit position="east" resizable="false" size="200">
            <h3>Comments:</h3>
            <ui:insert name="notes"/>
        </p:layoutUnit>
        <p:layoutUnit position="center" resizable="false">
            <ui:insert name="content"/>
        </p:layoutUnit>
    </p:layout>
</div>
</h:body>
</f:view>
</html>